//
//  TableViewCell.swift
//  Alamofire
//
//  Created by 李然 on 2022/7/20.
//

import UIKit

open class TableViewCell: UITableViewCell {
    
    public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.selectionStyle = .none
        makeUI()
    }
    
    required public init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    open override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
    }

    open func makeUI() {
        self.backgroundColor = UIColor.white
        updateUI()
    }

    open func updateUI() {
        setNeedsDisplay()
    }
}
